<template>
  <el-dialog
    title="添加小组"
    :close-on-click-modal="false"
    :visible.sync="visible"
    append-to-body
  >
    <el-container>
      <el-main>
        <el-form>
          <el-form-item>
            <el-input v-model="form.name"></el-input>
          </el-form-item>
        </el-form>
      </el-main>
    </el-container>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="$emit('submit',form)">确定</el-button>
      <el-button type="primary" plain @click="$emit('cancel')">取消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    visible: false,
  },
  data() {
    return {
      form: {
        name: "",
      },
    };
  },
  created() {},
  methods: {},
};
</script>

<style scoped>
</style>
